<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <style>
        @keyframes xhz {
            0% {
                transform: rotate3d(1, 1, 0, 0deg);
            }

            25% {
                transform: rotate3d(1, 1, 0, 90deg);
            }

            50% {
                transform: rotate3d(1, 1, 0, 180deg);
            }

            75% {
                transform: rotate3d(1, 1, 0, 270deg);
            }

            100% {
                transform: rotate3d(1, 1, 0, 360deg);
            }
        }

        * {
            margin: 0;
            padding: 0%;
        }

        body {
           background: url(./image/4.jpg) no-repeat ;
           background-size:100% 100%;
           
            perspective: 2000px;
        }

        div {
            position: relative;
            width: 300px;
            height: 300px;
            margin: 300px auto;
            transform-style: preserve-3d;
            transform: rotate3d(1, 1, 0, 90deg);
            animation: xhz 3s infinite linear;
        }

        img {
            position: absolute;
            width: 100%;
            height: 100%;
            opacity: .6;
        }

        div img:nth-child(n+7) {
            width: 500px;
            height: 500px;
            top: -100px;
            left: -100px;
            transition: all, 3s;
        }

        div:hover img:nth-child(7) {
            transform: rotateX(0deg) translateZ(400px);
            transition-delay: 1s;
        }

        div:hover img:nth-child(8) {
            transform: rotateX(-90deg) translateZ(400px);
            transition-delay: 1s;
        }

        div:hover img:nth-child(9) {
            transform: rotateX(-180deg) translateZ(400px);
            transition-delay: 1s;
        }

        div:hover img:nth-child(10) {
            transform: rotateX(-270deg) translateZ(400px);
            transition-delay: 1s;
        }

        div:hover img:nth-child(11) {
            transform: rotateY(90deg) translateZ(400px);
            transition-delay: 1s;
        }

        div:hover img:nth-child(12) {
            transform: rotateY(-90deg) translateZ(400px);
            transition-delay: 1s;
        }
       span{
           display: block;
       }
        /* 小图立方体 */
        img:nth-child(1) {
            transform: rotateY(0deg) translateZ(150px);
            /* 正确 */
        }

        img:nth-child(2) {
            transform: rotateY(-90deg) translateZ(150px);
        }

        img:nth-child(3) {
            transform: rotateY(-180deg) translateZ(150px)
        }

        img:nth-child(4) {
            transform: rotateY(-270deg) translateZ(150px)
        }

        img:nth-child(5) {
            transform: rotateX(90deg) translateZ(150px)
        }

        img:nth-child(6) {
            transform: rotateX(-90deg) translateZ(150px)
        }

        img:nth-child(7) {
            transform: rotateY(0deg) translateZ(250px);
            /* 正确 */
        }

        img:nth-child(8) {
            transform: rotateY(-90deg) translateZ(250px);
        }

        img:nth-child(9) {
            transform: rotateY(-180deg) translateZ(250px)
        }

        img:nth-child(10) {
            transform: rotateY(-270deg) translateZ(250px)
        }

        img:nth-child(11) {
            transform: rotateX(90deg) translateZ(250px)
        }

        img:nth-child(12) {
            transform: rotateX(-90deg) translateZ(250px)
        }
    </style>
</head>

<body>
    <div>
        <!-- 图片动画 -->
        <img src="./image/向·涵之.jpg" alt="" class="one">
        <img src="./image/向涵之.jpg" alt="" class="two">
        <img src="./image/向·涵之.jpg" alt="" class="three">
        <img src="./image/向涵之.jpg" alt="" class="four">
        <img src="./image/向·涵之.jpg" alt="" class=five>
        <img src="./image/向涵之.jpg" alt="" class="six">
        <img src="./image/向·涵之.jpg" alt="" class="one">
        <img src="./image/向涵之.jpg" alt="" class="two">
        <img src="./image/向·涵之.jpg" alt="" class="three">
        <img src="./image/向涵之.jpg" alt="" class="four">
        <img src="./image/向·涵之.jpg" alt="" class=five>
        <img src="./image/向涵之.jpg" alt="" class="six">
    </div>
    <span></span>
</body>
<script>
    var div=document.querySelector('div');
    var span=document.querySelector('span');
    div.addEventListener('mouseon',function(){
    })
</script>
</html>